package com.zaimokuza.cn.entity.blog;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zaimokuza
 */
@ApiModel("博客分类")
@Data
public class Classification {

    @ApiModelProperty("分类ID")
    private String id;
    @ApiModelProperty("用户ID")
    private String userId;
    @ApiModelProperty("用户名称")
    private String userName;
    @ApiModelProperty("用户域名")
    private String userDomain;
    @ApiModelProperty("分类名称")
    @NotBlank(message = "请填写分类名称！")
    private String name;
    @ApiModelProperty("创建时间")
    private String createdTime;
    @ApiModelProperty("分类下博客数量")
    private Long count;

}
